package com.example.crmdemo.Crm.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.crmdemo.Crm.entity.Operation;
import com.example.crmdemo.Crm.mapper.OperationMapper;
import com.example.crmdemo.Crm.service.OperationService;
import org.springframework.stereotype.Service;

@Service
public class OperationServiceImpl extends ServiceImpl<OperationMapper, Operation> implements OperationService {

    @Override
    public boolean save(Operation operation) {
        operation.setDataState("新建");
        return super.save(operation);
    }

    @Override
    public boolean updateById(Operation operation) {
        operation.setDataState("修改");
        return super.updateById(operation);
    }
}
